package chan.project.smartlawservice.lawyerService;

import chan.project.smartlawcommon.common.BaseResponse;
import chan.project.smartlawmodel.dto.lawyer.LawyerInfoAddRequest;
import chan.project.smartlawmodel.dto.lawyer.LawyerInfoRegisterRequest;
import chan.project.smartlawmodel.entity.CommonInfo;
import chan.project.smartlawmodel.entity.LawyerInfo;
import chan.project.smartlawservice.config.FeignInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * lawyer内部调用接口
 */
@FeignClient(value = "lawyer",
        configuration = FeignInterceptor.class,
        path = "api/lawyer")
public interface LawyerInfoFeignClient {

    @PostMapping("/inner/register")
    boolean lawyerRegister(@RequestBody LawyerInfo lawyerInfo);

    @GetMapping("/inner/getLawyer")
    LawyerInfo getLawyerInfo(@RequestParam("userId") Long userId);

    @GetMapping("/inner/getLawyerByList")
    List<LawyerInfo> getLawyerByList(@RequestParam("userIdList") List<String> userIdList);

}
